<template>
  <div>
    <el-pagination
      align="center"
      background
      :page-sizes="pageSizes"
      layout="  prev, pager, next, jumper,->,sizes,total"
      :total="total"
      :current-page="currentPage"
      :page-size="pageSize"
      @current-change="currentChange"
    >
    </el-pagination>
  </div>
</template>

<script>
export default {
  name: "MyPagination",
  props: {
    total: { required: true, type: Number },
    pageSizes: {
      default() {
        return [10, 20, 30, 50];
      },
      type: Array,
    },
    pageSize: {
      default: 5,
      type: Number,
    },
    background: {
      default: true,
      type: Boolean,
    },
    currentPage: {
      default: 1,
      type: Number,
      required: true,
    },
    pageCount: {
      default: 2,
      type: Number,
    },
  },
  data() {
    return {};
  },
  methods: {
    currentChange(val) {
      this.$emit("currentChange", val);
    },
  },
  computed: {
   
  },
};
</script>

<style scoped>
div {
  margin-top: 20px;
}
</style>